package com.pureut.quality.controller;

import com.pureut.common.core.web.controller.BaseController;
import com.pureut.common.core.web.domain.AjaxResult;
import com.pureut.quality.service.ISysShopModelingService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/***
 *
 * Author:C
 * Date:2023/03/28 17:29
 * @DESC
 */
@RestController
@RequestMapping("/quality-shop-modeling")
public class QualityShopModelingController extends BaseController {

    @Resource
    ISysShopModelingService sysShopModelingService;

    /**
     * 根据阶别获取线别
     */
    @GetMapping("/getLineCodeByRank/{rank}")
    public AjaxResult getLineCodeByRank(@PathVariable("rank") int rank) {
        return AjaxResult.success(sysShopModelingService.getLineCodeByRank(rank));
    }

}
